package com.qf.controller;

import com.qf.pojo.resp.BaseResp;
import com.qf.service.IndexService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName IndexController
 * @Description TODO
 * @Author Windy
 * @Date 2022/9/28 16:59
 * @Version 1.0
 **/
@RestController
@RequestMapping("index")
@Api(tags="首页信息获取")
public class IndexController {

    @Autowired
    IndexService indexService;

    @GetMapping("list")
    @ApiOperation("获取首页的商店列表和顶部分类列表")
    public BaseResp geiList() {
        return indexService.getList();
    }

}
